#ifndef __SPI_H
#define __SPI_H
#include "sys.h"


extern void SPI1_Init(void);
extern void SPI1_SetSpeed(u8 SPI_BaudRatePrescaler);
extern u8 SPI1_ReadWriteByte(u8 TxData);

extern void SPI2_Init(void);
extern void SPI2_SetSpeed(u8 SPI_BaudRatePrescaler);
extern u8 SPI2_ReadWriteByte(u8 TxData);


extern SPI_HandleTypeDef SPI1_Handler;  //SPI句柄
extern SPI_HandleTypeDef SPI2_Handler;  //SPI句柄

#endif
